package com.hfkh.keyun.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hfkh.keyun.entity.Carousel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CarouselMapper extends BaseMapper<Carousel> {


    /**
     * 根据传入数量返回轮播图列表
     * @param number 数量
     * @return
     */
    List<Carousel> selectByLimit(@Param("n") int number);

}
